using System;
using System.Xml.Serialization;
using System.Collections.Generic;
using Top.Api;

namespace DingTalk.Api.Response
{
    /// <summary>
    /// OapiEduSubjectGetResponse.
    /// </summary>
    public class OapiEduSubjectGetResponse : DingTalkResponse
    {
        /// <summary>
        /// 钉钉开放api通用result
        /// </summary>
        [XmlElement("result")]
        public DingOpenResultDomain Result { get; set; }

	/// <summary>
/// SubjectDTODomain Data Structure.
/// </summary>
[Serializable]

public class SubjectDTODomain : TopObject
{
	        /// <summary>
	        /// 学科编码
	        /// </summary>
	        [XmlElement("code")]
	        public string Code { get; set; }
	
	        /// <summary>
	        /// 学科名称
	        /// </summary>
	        [XmlElement("name")]
	        public string Name { get; set; }
}

	/// <summary>
/// DingOpenResultDomain Data Structure.
/// </summary>
[Serializable]

public class DingOpenResultDomain : TopObject
{
	        /// <summary>
	        /// 学科实例对象
	        /// </summary>
	        [XmlElement("data")]
	        public SubjectDTODomain Data { get; set; }
	
	        /// <summary>
	        /// 错误code
	        /// </summary>
	        [XmlElement("errcode")]
	        public long Errcode { get; set; }
	
	        /// <summary>
	        /// 错误msg
	        /// </summary>
	        [XmlElement("errmsg")]
	        public string Errmsg { get; set; }
	
	        /// <summary>
	        /// 是否调用成功
	        /// </summary>
	        [XmlElement("success")]
	        public bool Success { get; set; }
}

    }
}
